home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
tools
/
mdxdos23
/
fatalerr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-10
|
386b
|
20 lines
#include <multix.h>
Public Void MsDosCdecl FatalErrorHandler(
Int8Ptr ErrorText
)
BEGIN
static TBoolean Inside GETS False;
IfNullP(ErrorText) ErrorText GETS "";
#ifndef _WINDOWS
/* perror(ErrorText); */
printf("\n%s\nFatal Error - Program Stopped !!!\n",ErrorText);
#else
Use(ErrorText);
#endif
IF Inside EQ True THEN return;
Inside GETS True;
exit(5);
END